Skip to content

fix(immoscout): support buy-side (-kaufen) apartment sub-type SEO URLs#370

Merged
orangecoding merged 1 commit into
orangecoding:masterfrom
Kavlahkaff:fix_slugs_for_kaufen_type
Jul 21, 2026
Merged

fix(immoscout): support buy-side (-kaufen) apartment sub-type SEO URLs#370
orangecoding merged 1 commit into
orangecoding:masterfrom
Kavlahkaff:fix_slugs_for_kaufen_type

Conversation

@Kavlahkaff

Copy link
Copy Markdown
Contributor

Hi! First of all, thanks a lot for open-sourcing this project!
I found this error when setting up a job on my machine and opened this PR to resolve it. Happy to make any changes if needed!

  • Refactored WEB_PATH_TO_APARTMENT_EQUIPMENT_MAP to dynamically generate both -mieten and -kaufen variants from a shared BASE_SLUGS map.

  • Updated the fallback logic in convertWebToMobile to properly assign apartmentbuy instead of apartmentrent when the SEO path ends in -kaufen.

  • Added offline test cases to verify the translation of added buy-side slugs.

Closes: #369

@orangecoding orangecoding left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@orangecoding
orangecoding merged commit d280aff into orangecoding:master Jul 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ImmoScout: buy-side apartment sub-type SEO URLs (e.g. erdgeschosswohnung-kaufen) throw "Real estate type not found"

2 participants